import {createRouter, createWebHistory} from 'vue-router'
import initOpenlayers from '@/components/01openlayers入门/init-openlayers.vue'
import MapDesc from '@/components/01openlayers入门/MapDesc.vue'
import ViewDesc from "@/components/01openlayers入门/ViewDesc.vue";
import ZoomControl from "@/components/02openlayes常用控件/01ZoomControl.vue"
import BaseOperation from "@/components/02openlayes常用控件/02BaseOperation.vue"
import LayerControl from "@/components/02openlayes常用控件/03LayerControl.vue"
import PositionControl from '@/components/02openlayes常用控件/04PositionControl.vue';
import OverViewControl from "@/components/02openlayes常用控件/05OverViewControl.vue";
import FullScreenControl from "@/components/02openlayes常用控件/06FullScreenControl.vue";
import MeasureControl from "@/components/02openlayes常用控件/07MeasureControl.vue";
import AnimateControl from "@/components/02openlayes常用控件/08AnimateControl.vue";
import ScaleLineControl from "@/components/02openlayes常用控件/09ScaleLineControl.vue"
import LayerSearchControl from "@/components/02openlayes常用控件/10LayerSearchControl.vue"
import ImageLayer from "@/components/03openlayers各种数据/01ImageLayer.vue";
import TileLayer from "@/components/03openlayers各种数据/02TileLayer.vue";
import VectorFeatureLayer from "@/components/03openlayers各种数据/03VectorFeatureLayer.vue";
import VectorFormatLayer from "@/components/03openlayers各种数据/04VectorFormatLayer.vue";
import VectorTileLayer from "@/components/03openlayers各种数据/05VectorTileLayer.vue";
import VectorTileDebug from "@/components/03openlayers各种数据/06VectorTileDebug.vue";
import GaoDeMap from "@/components/03openlayers各种数据/07GaoDeMap.vue";
import TianDiMap from "@/components/03openlayers各种数据/08TianDiMap.vue";
import BingMap from "@/components/03openlayers各种数据/09BingMap.vue";
import ArcgisTileLayer from "@/components/03openlayers各种数据/10ArcgisTileLayer.vue";
import GeojsonLayer from "@/components/03openlayers各种数据/11GeojsonLayer.vue";
import PictureMarker from "@/components/09openlayers高级功能/01PictureMarker.vue";
import PopupWindow from "@/components/09openlayers高级功能/02PopupWindow.vue";
import MultiView from "@/components/09openlayers高级功能/03MultiView.vue";
import GeoLocation from "@/components/09openlayers高级功能/04GeoLocation.vue";
import HeatMap from "@/components/09openlayers高级功能/05HeatMap.vue";
import CanvasTileLayer from "@/components/10openlayers之render/canvas/01CanvasTileLayer.vue";
import CanvasRendererGeometryLayer
  from "@/components/10openlayers之render/canvas/02CanvasRendererGeometryLayer.vue";
import CanvasPointsSpriteLayer
  from "@/components/10openlayers之render/canvas/03CanvasPointsSpriteLayer.vue";
import CanvasRendererImageLayer
  from "../../openlayers-teach/src/components/10openlayers之render/canvas/04CanvasRendererImageLayer.vue";
import WebGLTileLayer from "@/components/10openlayers之render/webgl/01WebGLTileLayer.vue";
import WebGLTileStyleLayer
  from "@/components/10openlayers之render/webgl/02WebGLTileStyleLayer.vue";
import WebGLPointsSpriteLayer
  from "../../openlayers-teach/src/components/10openlayers之render/webgl/03WebGLPointsSpriteLayer.vue";
import ProjectScatterDiagram
  from "@/components/11openlayers项目实战/01echarts/01ProjectScatterDiagram.vue";
import ProjectMigrationMap
  from "@/components/11openlayers项目实战/01echarts/02ProjectMigrationMap.vue";
import ProjectAirQuality
  from "@/components/11openlayers项目实战/01echarts/03ProjectAirQuality.vue";
import ProjectOlCesium from "@/components/11openlayers项目实战/02cesium/01ProjectOlCesium.vue";
import ProjectWindLayer from "../../openlayers-teach/src/components/11openlayers项目实战/03wind/01ProjectWindLayer.vue";
import ProjectTrackPlay
  from "@/components/11openlayers项目实战/06other/03ProjectTrackPlay.vue";
import ProjectLayerSwipe
  from "@/components/11openlayers项目实战/06other/08ProjectLayerSwipe.vue";
const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/introduction/hello',
      component: initOpenlayers
    },
    {
      path: '/introduction/map',
      component: MapDesc
    },
    {
      path: '/introduction/view',
      component: ViewDesc
    },
    {
      path: '/control/zoom',
      component: ZoomControl
    },
    {
      path: '/control/operate',
      component: BaseOperation
    },
    {
      path: '/control/layer',
      component: LayerControl
    },
    {
      path: '/control/position',
      component: PositionControl
    },
    {
      path: '/control/overview',
      component: OverViewControl
    },
    {
      path: '/control/fullscreen',
      component: FullScreenControl
    },
    {
      path: '/control/measure',
      component: MeasureControl
    },
    {
      path: '/control/animation',
      component: AnimateControl
    },
    {
      path: '/control/scaleline',
      component: ScaleLineControl
    },
    {
      path: '/control/layersearch',
      component: LayerSearchControl
    },
    {
      path: '/layer/image',
      component: ImageLayer
    },
    {
      path: '/layer/tile',
      component: TileLayer
    },
    {
      path: '/layer/vector1',
      component: VectorFeatureLayer
    },
    {
      path: '/layer/vector2',
      component: VectorFormatLayer
    },
    {
      path: '/layer/vector/tile',
      component: VectorTileLayer
    },
    {
      path: '/layer/debug',
      component: VectorTileDebug
    },
    {
      path: '/layer/gd',
      component: GaoDeMap
    },
    {
      path: '/layer/tdt',
      component: TianDiMap
    },
    {
      path: '/layer/bing',
      component: BingMap
    },
    {
      path: '/layer/arcgis',
      component: ArcgisTileLayer
    },
    {
      path: '/layer/geojson',
      component: GeojsonLayer
    },
    {
      path: '/advance/picture',
      component: PictureMarker
    },
    {
      path: '/advance/popup',
      component: PopupWindow
    },
    {
      path: '/advance/multi',
      component: MultiView
    },
    {
      path: '/advance/location',
      component: GeoLocation
    },
    {
      path: '/advance/heatMap',
      component: HeatMap
    },
    {
      path: '/canvas/layer',
      component: CanvasTileLayer
    },{
      path: '/canvas/geometry',
      component: CanvasRendererGeometryLayer
    },{
      path: '/canvas/points',
      component: CanvasPointsSpriteLayer
    },{
      path: '/canvas/image',
      component: CanvasRendererImageLayer
    },{
      path: '/webgl/layer',
      component: WebGLTileLayer
    },
    {
      path: '/webgl/style',
      component: WebGLTileStyleLayer
    },
    {
      path: '/webgl/points',
      component: WebGLPointsSpriteLayer
    },
    {
      path: '/project/scatter',
      component: ProjectScatterDiagram
    },
    {
      path: '/project/migration',
      component: ProjectMigrationMap
    },
    {
      path: '/project/air',
      component: ProjectAirQuality
    },
    {
      path: '/project/cesium',
      component: ProjectOlCesium
    },
    {
      path: '/project/wind',
      component: ProjectWindLayer
    },
    {
      path: '/project/track',
      component: ProjectTrackPlay
    },
    {
      path: '/project/swipe',
      component: ProjectLayerSwipe
    },
  ]
})

export default router;